//
//  CXPayTypeTableCell.m

//

#import "CXPayTypeTableCell.h"
@interface CXPayTypeTableCell()
@property (weak, nonatomic) IBOutlet UIImageView *logoView;
@property (weak, nonatomic) IBOutlet UILabel     *nameLabel;
@property (weak, nonatomic) IBOutlet UIButton    *stateButton;
@property (weak, nonatomic) IBOutlet UIImageView *selectedImage;
@property (nonatomic ,assign) BOOL isSelected;

@end
@implementation CXPayTypeTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


-(void)setModel:(CXPayTypeModel *)model
{
    _model = model;

    _logoView.image = [UIImage imageNamed:_model.logo];


    _nameLabel.text = _model.name;
    
    if([_model.isSelect isEqualToString:@"1"])
        _selectedImage.image = [UIImage imageNamed:_model.logo];
//        HNTGetImage(@"selected_join");
//        _stateButton.selected = YES;
    else
//        _stateButton.selected = NO;
        _selectedImage.image = [UIImage imageNamed:_model.logo];
//        HNTGetImage(@"unselect");
        
}




@end
